<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>扫名片</title>
    <meta name="wpk-bid" content="dta_1_280298313">
</head>
<body>
<!--<script src="/Portal/Mobile/js/dingTalk.js?v=201901051636"></script>-->
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.7.13/dingtalk.open.js"></script>
<script src="/Portal/Mobile/form/jquery-2.1.3.min.js?v=201901051636"></script>

<SCRIPT>
$(function(){
    var  urlJy = document.location.href;
            var _config = {}
            $.ajax({
                url: "/Portal/Mobile/DingTalk/GetSignConfig",
                data: {
                    url: urlJy
                },
                async: false,
                success: function (res) {

                    _config = res.data;
                    dd.config({
                        agentId: _config.agentId,
                        corpId:_config.corpId,
                        timeStamp: _config.timeStamp,
                        nonceStr: _config.nonce,
                        signature: _config.signature,
                        jsApiList: ['biz.util.scanCard']
                    });
                    dd.error(function(error){

                        alert('dd error1: ' + JSON.stringify(error));
                    });
                    dd.ready(function () {

                        dd.runtime.permission.requestAuthCode({
                            corpId:_config.corpId,
                            onSuccess: function(result) {

                                dd.biz.util.scanCard({
                                    onSuccess: function(data) {
                                        sessionStorage.setItem("linkMan", JSON.stringify(data) );
                                      //  $("#sss").html(JSON.stringify(data));
                                        location.href="http://www.kumhosunny.cn:8099/Portal/MvcDefaultSheet.jsp?Mode=Originate&SchemaCode=ContactFileManager&IsMobile=true#/form/detail";
                                    },
                                    onFail : function(err) {
                                        alert('dd error: ' + JSON.stringify(error));
                                    }
                                });
                            },
                            onFail : function(err) {alert('dd error: ' + JSON.stringify(err));}
                        });




                    });

                }
            });


})


</SCRIPT>
<div id="sss"></div>>
</body>
</html>